package com.bootdoolvillage.wow.api.util;

import com.bootdoolvillage.wow.api.config.BattleNetConfiguration;

public class URLFactory {
	private BattleNetConfiguration config;

	public URLFactory(BattleNetConfiguration config) {
		this.config = config;
	}

	public String getAuctionURL(String realmName) {
		String urlFormat = config.getAuctionUrl();
		return String.format(urlFormat, realmName, config.getApiKey());
	}

	public String getRealmStatusURL() {
		String urlFormat = config.getRealmUrl();
		return String.format(urlFormat, config.getApiKey());
	}
}
